package com.study.yangfei.mystudy.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;

import com.study.yangfei.mystudy.R;
import com.study.yangfei.mystudy.utils.JniTest;

public class JniActivity extends AppCompatActivity {

    JniTest mJniTest;

    final String TAG = JniActivity.class.getSimpleName();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_jni);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        mJniTest = new JniTest();
        String cStr = mJniTest.foo1();
        Log.d(TAG,cStr);
        int cInt = mJniTest.foo2(23,"hello");
        Log.d(TAG,"cInt = "+cInt);
    }

}
